package com.service.impl;

import com.domain.Company;
import com.domain.Student;
import com.domain.Teacher;
import com.domain.User;
import com.mapper.AccountMapper;
import com.mapper.StudentMapper;
import com.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("studentService")
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<Student> login(String sname, String spasswd) {
        List<Student> all = studentMapper.login(sname,spasswd);
        return all;
    }

    @Override
    public List<Teacher> tlogin(String tname, String tpasswd) {
        List<Teacher> all = studentMapper.tlogin(tname,tpasswd);
        return all;
    }

    @Override
    public List<Company> clogin(String cname, String cpasswd) {
        List<Company> all = studentMapper.clogin(cname,cpasswd);
        return all;
    }

    @Override
    public List<Student> clist() {
        List<Student> all = studentMapper.clist();
        return all;
    }

    @Override
    public List<Student> apply() {
        return studentMapper.apply();
    }


}
